<template><div /></template>
<script lang="ts" setup>
import { useRoute, useRouter } from 'vue-router'
import { isPopupUrl, popupUrl, setItem } from '@/utils'
import { REDIRECT_FROM_ROUTE } from '@/constants'

const route = useRoute()
const router = useRouter()

if (isPopupUrl(route.fullPath)) {
	popupUrl(route.fullPath)
}

setItem(REDIRECT_FROM_ROUTE, location.href)
router.push('/')
</script>
